/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package forense.classes;

import forense.frames.Presentación;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Kate
 */
public class Main {

    public static void main(String[] args) throws IOException {

        Main a = new Main();
        a.levantarServicio2();
        try {
            Thread.sleep(3000); //5000 es de 5 seg.
            new Thread(new Presentación()).start();
        } catch (InterruptedException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

    public void levantarServicio2() {
        String comando;
        String s = null;
        //Iniciar servicio
        try {
            String cmd = "cmd c/ adb start-server";
            Process inicio = Runtime.getRuntime().exec(cmd);
            BufferedReader std = new BufferedReader(new InputStreamReader(
                    inicio.getInputStream()));
            s = std.readLine();
        } catch (IOException ex) {
            System.out.println("Error inicio servicio: " + ex);
//            log.error(ex);

        }
    }

}
